package com.zuipin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuipin.entity.product.ProductPropertyValue;
import com.zuipin.mapper.ProductPropertyValueMapper;
import com.zuipin.service.IProductPropertyValueService;
import com.zuipin.vo.BackProInfoPropertyVo;

import net.sf.json.JSONObject;

/**
 * 商品 属性属性值业务类实现
 *
 * @ClassName ProductPropertyValueServiceImpl 
 * @author wangcongyi
 * @date 2017年5月10日 上午11:39:22
 */
@Service
public class ProductPropertyValueServiceImpl implements IProductPropertyValueService {
	
	@Resource
	private ProductPropertyValueMapper productPropertyValueMapper;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.deleteByPrimaryKey(id);
	}
	
	@Override
	public int deleteByProId(Long proId) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.deleteByProId(proId);
	}
	
	@Override
	public int updateBackProInfoProp(ProductPropertyValue record) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.updateBackProInfoProp(record);
	}
	
	@Override
	public int insert(ProductPropertyValue record) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.insert(record);
	}
	
	@Override
	public int insertSelective(ProductPropertyValue record) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.insertSelective(record);
	}
	
	@Override
	public ProductPropertyValue selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.selectByPrimaryKey(id);
	}
	
	@Override
	public int updateByPrimaryKeySelective(ProductPropertyValue record) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.updateByPrimaryKeySelective(record);
	}
	
	@Override
	public int updateByPrimaryKey(ProductPropertyValue record) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.updateByPrimaryKey(record);
	}
	
	@Override
	public List<ProductPropertyValue> selectByProId(JSONObject params) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.selectByProId(params);
	}
	
	@Override
	public int insertBatch(List<ProductPropertyValue> productPropertyValues) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.insertBatch(productPropertyValues);
	}
	
	@Override
	public int updateBatch(List<ProductPropertyValue> productPropertyValues) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.updateBatch(productPropertyValues);
	}
	
	@Override
	public List<BackProInfoPropertyVo> seachProInfoProperty(Long proId, Long sysId) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.seachProInfoProperty(proId, sysId);
	}
	
	@Override
	public int deleteByPropId(Long catId, Long proId) {
		// TODO Auto-generated method stub
		return productPropertyValueMapper.deleteByPropId(catId, proId);
	}
	
}
